
import java.awt.Point;

public class UnitMobileAA extends Unit {

	/*
	 * Constructor
	 */
	public UnitMobileAA(Point coord, Integer s) {
		super(coord, s);	// Call super class's constructor

		unitTypeID = Unit.UNIT_TYPE_ID_MOBILEAA;
		unitName = "MobileAA";
		unitDescription = "Major ground force of mordern war. The attack is stronger than Tank.";
		hitPoint = remainingHitPoint = 150;
		attackPower = 70;
		motionPoint = 5;
		
		
		/*
		 * Set attackable area
		 */
		rltAttackableArea.add(new Point(2, 0));
		rltAttackableArea.add(new Point(1, 1));
		rltAttackableArea.add(new Point(0, 2));
		rltAttackableArea.add(new Point(-1, 1));
		rltAttackableArea.add(new Point(-2, 0));
		rltAttackableArea.add(new Point(-1, -1));
		rltAttackableArea.add(new Point(0, -2));
		rltAttackableArea.add(new Point(1, -1));
		
		
		/*
		 * Load unit images
		 */
		if(side == Unit.UNIT_SIDE_ID_USER1) {
			addUnitImage(WorldWar.imageLoader.getImageByName(ImageStructure.IMAGE_NAME_UNIT_MOBILEAA_1));
		}
		else {
			addUnitImage(WorldWar.imageLoader.getImageByName(ImageStructure.IMAGE_NAME_UNIT_MOBILEAA_2));
			
		}
		
		/*
		 * Set original block image
		 */
		setUnitImageIndex(0);
	}
}
